﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix = "fn" uri = "http://java.sun.com/jsp/jstl/functions"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title></title>
	<script type="text/javascript" src="<%=basePath %>/bootstrap/js/jquery.js"></script>
	<script type="text/javascript" src="<%=basePath %>/bootstrap/js/bootstrap.min.js"></script>
	<link rel="stylesheet" href="<%=basePath %>/bootstrap/css/bootstrap.min.css" />
	<style type="text/css">
		body{
			background-image:url("<%=basePath%>/bootstrap/img/5.jpg");
			 background-attachment :local; 
			 background-size: cover;
		}
		.container{
			margin-left:50px;
		}
		.container .nav{
			margin-left:120px;
		}
		.span3{
			background-image:url("<%=basePath%>/bootstrap/img/5.jpg");
		}
		.container-fluid{
			margin-top:70px;
			margin-left:-20px;
		}
		#navleft{
			font-size:18px;
		}
		#aleft{
			color:black;
		}
		#aleft:hover{
			color:blue;
		}
		.pagerhader,.reqiredtable {
			background-image:url("<%=basePath%>/bootstrap/img/5.jpg");
			border-bottom: 1px solid #DADEE5;
			font-size: 18px;
			padding: 15px 30px;
			position: relative;
		}
		.othertable{
			border-bottom: 1px solid #DADEE5;
			font-size: 18px;
			padding: 15px 30px;
			position: relative;
		}
		.pagecontent .time {
			width: 50px;
		}
		td {
			padding: 0.8em;
		}
		.div1{
			margin-left:10px;
			color:red;
			
		}
		.div2{
			margin-top:15px;
			margin-left:200px;
			margin-bottom:10px;
		}
		.table1{
			margin-top:10px;
		}
		th{
			font-size:25px;
			font-weight:blod;
		}
		.title{
			font-size:20px;
		}
		hr{
			color:black;
		}
		.div4{
			font-size:19px;
		}
	</style>
</head>
<body>
	<!--导航-->
	   	   <div id="navbar-example" class="navbar navbar-fixed-top">
            <div class="navbar-inner">
              <div class="container" style="width: auto;height:10px">
                <a class="brand" href="#">CRM</a>
                <ul class="nav">
					<li class="">
						 <form id="searchForm" class="navbar-search pull-left" action="http://www.google.com.hk/search" method="get">
								<input type="text" id="search" class="search-query span5" name="q" autocomplete="off" placeholder="Google Search"/>
								<script>
									$(document).ready(function(){
										$("#search").keydown(function(){
											if(event.keyCode == 13) {
												$("searchForm").submit();
											}

										});

									});
								</script>
							</form>
					  </li>
					  <li class="">
						<a href="">用户名：${sessionScope.user.username }</a>
					  </li>
                  <li class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#menu1">
							账号&设置
							<b class="caret"></b>
						</a>
                    <ul class="dropdown-menu">
						  <li><a href="users.action">我的信息</a></li>
						  <li><a href="groups.action">小组成员</a></li>
						  <script type="text/javascript">
							$(document).ready(function(){
								$(".dropdown-toggle").dropdown();
							});
						 </script>
						</ul>
					</li>
					  <li class="">
						<a href="index.action">安全退出</a>
					  </li>
                </ul>
              </div>
            </div>
          </div>
		  <script type="text/javascript">
			$(document).ready(function(){
				$(".dropdown-toggle").dropdown();
			});
		  </script>

		  <!--左遍的内容-->
		<div class="container-fluid">
		  <div class="row-fluid">
			<div class="span3" style="background-color: #F0F5F8;border: 1px solid #DADEE5;width:170px;height:240px;padding-top:20px;margin-left:40px;">
				<div id="left">
					<ul class="nav nav-list" id="navleft">
					  <li>
						<a href="findAllMessage.action" id="aleft">
						   <img src="<%=basePath%>/bootstrap/img/22.png"/>
							最新动态
						</a>
					  </li>
					  <li>
						<a href="contacts.action" id="aleft">
						 <img src="<%=basePath%>/bootstrap/img/18.png"/>
							联系人
						</a>
					  </li>
					  <li>
						<a href="task.action" id="aleft">
						  <img src="<%=basePath%>/bootstrap/img/20.png"/>
							日程安排
						</a>
					  </li>
					  <li>
						<a href="deal.action" id="aleft">
						 <img src="<%=basePath%>/bootstrap/img/19.png"/>
							业务机会
						</a>
					  </li>
					  <li class="search">
						<a href="search.action" id="aleft">
							<img src="<%=basePath%>/bootstrap/img/21.png"/>
							搜索
						</a>
						</li>
					</ul>
				</div>
			</div>
			<!--中心的内容-->
			<div class="span6" style="border:1px solid #D7D7D7;background-color:white;width:550px">
				<div class="pagebody">

					<div class="pagerhader">
						交易列表
					</div>
					<div class="pagecontent">
					
						<div id="adduser" class="div2"  >
							<a class="btn  btn-large btn-success" href="dealadd.action">
										<i class="icon-plus icon-white"></i>
											添加一笔交易
								</a>
							
							</div>
							<div style="background-color:#F0F5F8">
						<table>
						<c:choose>
							<c:when test="${fn:length(dealList1)==0 }">
								<tr></tr>
							</c:when>
							<c:otherwise>
						<tr>
						
							<td><h2>待处理的交易</h2></td>
						</tr>
						
						<!--for循环输出所以的交易-->
						<c:forEach items="${dealList1 }" var="deal1">
							
							<tr>
								<td>
									
									<!-- 图片 --><img src="<%=basePath %>/bootstrap/img/4.png" /><a href="dealshow.action?id=${deal1.id }" class="div4"><span style="font-size:20px">${deal1.title}</span></a>￥<small>${deal1.money }</small><!-- 任务的名字 -->
					
								</td>
								
								<td>
									<a class="btn  btn-mini btn-danger" href="dealdel.action?id=${deal1.id }">
										<i class="icon-trash icon-white"></i>
											删除
									</a>
									<a class="btn  btn-mini btn-info" href="dealedit.action?id=${deal1.id }">
										<i class="icon-edit icon-white"></i>
											编辑
									</a>
									
									</td>
							</tr>
							
							</c:forEach>
							</c:otherwise>
							</c:choose>
						</table>
						</div>
					<div style="background-color:#ADD8E6">
						<table>
						<c:choose>
							<c:when test="${fn:length(dealList2)==0 }">
								<tr></tr>
							</c:when>
							<c:otherwise>
						<tr>
							<td ><h2>交易成功</h2></td>
						</tr>
						<!--for循环输出所以的交易-->
						<c:forEach items="${dealList2}" var="deal2">
							<tr>
								<td>
									
									<!-- 图片 --><img src="<%=basePath %>/bootstrap/img/4.png"/><a href="dealshow.action?id=${deal2.id }" class="div4"><span style="font-size:20px">${deal2.title}</span></a>￥<small>${deal2.money }</small><!-- 任务的名字 -->
						
										
								</td>
								</tr>
							
							</c:forEach>
						</c:otherwise>
						</c:choose>
						</table>
						</div>
						<div style="background-color:#FFFFE0">
					<table>
					<c:choose>
							<c:when test="${fn:length(dealList3)==0 }">
								<tr></tr>
							</c:when>
							<c:otherwise>
						<tr>
							<td ><h2>交易失败</h2></td>
						</tr>
						<!--for循环输出所以的交易-->
						<c:forEach items="${dealList3 }" var="deal3">
							<tr>
								<td>
									
									<!-- 图片 --><img src="<%=basePath %>/bootstrap/img/4.png"/><a href="dealshow.action?id=${deal3.id }" class="div4"><span style="font-size:20px">${deal3.title}</span></a>￥<small>${deal3.money }</small><!-- 任务的名字 -->
						
										
								</td>
								</tr>
							
								
							</c:forEach>
						</c:otherwise>
						</c:choose>
						</table>
					</div>
						
						
					</div>
			</div>
		</div>
			<div class="span3" style="background-color: #F0F5F8;border: 1px solid #DADEE5;width:170px;height:240px;padding-top:20px;margin-left:25px;">
				<div class="box">
					<h3 id="anpai">Did you know…</h3>
					<p>
						
You can create tasks via email by using your create-a-task-by-email dropbox addresses.
Subscribe to your iCalendar task feed to see Highrise tasks on your Backpack Calendar, Apple iCal, Mozilla Calendar or other program that supports the iCalendar format.
					</p>
				</div>
				</div>
				<script type="text/javascript">
					$(document).ready(function(){
						$(".change").click(function(){
						
							
						});
					});
				</script>
				
</body>
</html>